package com.stars.empoly.adapter

import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.stars.empoly.R
import com.stars.empoly.databinding.ItemIncomeBinding
import com.stars.empoly.model.DriverProfit
import com.stars.empoly.vmodel.IncomeVModel
import com.trailer.base.base.BAdapter

class IncomeAdapter(var vm: IncomeVModel) : BAdapter<DriverProfit, BaseDataBindingHolder<ItemIncomeBinding>>(R.layout.item_income) {

    override fun convert(holder: BaseDataBindingHolder<ItemIncomeBinding>, item: DriverProfit) {
        holder.dataBinding?.vm = vm
        holder.dataBinding?.item = item


    }
}
